package com.tech15.core.action;

import javacommon.base.BaseStruts2Action;
import javacommon.util.LoginInfo;

public class StartAction extends BaseStruts2Action{
	protected static final String LOGIN_JSP = "/login.jsp";
	protected static final String INDEX_JSP = "!/index.do";
	private String domain;
	
	public String getDomain() {
		return domain;
	}

	public void setDomain(String domain) {
		this.domain = domain;
	}

	@Override
	public String execute() throws Exception {
		LoginInfo loginInfo = getLoginInfo();
		if(loginInfo != null){
			return INDEX_JSP;
		}else{
			return LOGIN_JSP;
		}
	}

}
